﻿using System.Collections;
using Gp.Scripts.Database;
using QFramework;

using UnityEngine;

namespace Gp.Scripts.Core {
    public class DeathGestureSequence : UnitGestureSequence {
        public override IEnumerator PlayGestureSequence() {
            // Model.transform.SetParent(null, true);
            // Animator.SetBool(UnitAnimatorParameter.IsDeathBool, true);
            Animator.Play(UnitAnimatorStateId.DeadState);
            // var force =  Vector3.left;
            // UnitRe
            
            
            // var loot = LevelObjectConfigDatabase.Instance
                // .deathLootPrefab.InstantiateWithParent(Model.transform);
            // loot.displayName = UnitReference.UnitName + "的尸体";
            // loot.LocalIdentity();
            
            
            // loot.Fill(UnitReference.EntityConfig.inventory, UnitReference.EntityConfig.equip);
            yield return new WaitForSeconds(.5f);
        }
    }
}